﻿using System.Collections.Generic;
using BoutiquePOS.DAL.DAO;
using BoutiquePOS.DAL.Gateway;

namespace BoutiquePOS.Manager
{
    public class PurchaseReturnDtlsManager
    {
        private PurchaseReturnDtlsGateway aPurchaseReturnDtlsGateway = new PurchaseReturnDtlsGateway();
        //public string GetProductNameAutoCompleteData(int formId)
        //{
        //    return aSalesReturnDtlsGateway.GetProductNameAutoCompleteData(formId);
        //}

        //public int SalesById(string salesNo)
        //{
        //    return aSalesReturnDtlsGateway.ReturnSalesId(salesNo);
        //}

        public int PurchaseReturnId(int purchaseReturnId)
        {
            return aPurchaseReturnDtlsGateway.PurchaseReturnId(purchaseReturnId);
        }

        public string SavePurchaseReturn(PurchaseReturn apurchaseReturn)
        {
            aPurchaseReturnDtlsGateway.SavePurchaseReturn(apurchaseReturn);
            return "Save success";
        }
        public string SavePurchaseReturnDtls(int id, List<PurchaseReturnDtls> purchaseReturnDtlses)
        {
            aPurchaseReturnDtlsGateway.SavePurchaseReturnDtls(id, purchaseReturnDtlses);
            return "Save success1";
        }
    }
}